package com.niiwoo.civet.mobile.vo.request.user;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.Pattern;

@Setter
@Getter
@ApiModel(description = "验证注册验证码")
public class UserCheckSMSRequestVO {
    @NotBlank(message = "验证手机号码不能为空")
    @Pattern(regexp = "^1([3458][0-9]|7[1-9])[0-9]{8}$", message = "验证手机号码错误")
    @ApiModelProperty(value = "登录名", notes = "手机号", required = true)
    private String Phone;
    @ApiModelProperty(value = "短信验证码",required = true)
    private String MsgCode;

}
